#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
  // 输出5个helloworld
  int i = 1;
  while (i <= 5) {
    printf("hello world!\n");
    i++;
  }
  // 遍历1~100之间的偶数，获取所有偶数之和
  int k = 1;
  int sum = 0;
  int count = 0;
  while (k <= 100) {
    if (k % 2 == 0) {
      sum += k;
      count++;
    }
    k++;
  }
  printf("1~100之间的偶数之和：%d\n", sum);
  printf("个数是：%d", count);

  return EXIT_SUCCESS;
}
